Remove spurious %S from 'define-error' messages
authorTom Levy <tomlevy93@gmail.com>
Tue, 9 Nov 2021 12:25:24 +0000 (12:25 +0000)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 10 Nov 2021 00:16:16 +0000 (01:16 +0100)
; The MESSAGE arg of 'define-error' does not support format specifiers
; (unlike the 'error' function). The signal data is automatically
; appended to the error message.

* lisp/emacs/lisp/cl-generic.el (cl--generic-cyclic-definition):
Remove spurious %S from error message.
* lisp/emacs-lisp/gv.el (gv-invalid-place): Remove spurious %S from
error message (and rephrase) (bug#51718).

Copyright-paperwork-exempt: yes

lisp/emacs-lisp/cl-generic.el
lisp/emacs-lisp/gv.el

index 3f75cf9922ce7bc621d8d59765bf1d90b2eec49e..9de47e4987d0f2a74e7302c679bb1a875ce8e92f 100644 (file)
@@ -687,7 +687,7 @@ This is particularly useful when many different tags select the same set
 of methods, since this table then allows us to share a single combined-method
 for all those different tags in the method-cache.")
 
-(define-error 'cl--generic-cyclic-definition "Cyclic definition: %S")
+(define-error 'cl--generic-cyclic-definition "Cyclic definition")
 
 (defun cl--generic-build-combined-method (generic methods)
   (if (null methods)
index d6272a524690d1240401162129cc1c8449558f17..ebcc63cc2a5868c70a6a70f7deb5ccb33f296b3e 100644 (file)
@@ -74,7 +74,7 @@
 ;; (defvar gv--macro-environment nil
 ;;   "Macro expanders for generalized variables.")
 
-(define-error 'gv-invalid-place "%S is not a valid place expression")
+(define-error 'gv-invalid-place "Invalid place expression")
 
 ;;;###autoload
 (defun gv-get (place do)